package cn.lg.soar.cms.biz.modules.article.entity;

import cn.lg.soar.core.annotations.constraints.group.Create;
import cn.lg.soar.core.annotations.constraints.group.Update;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 文章评论点赞
 * @author luguoxiang
 * @since 2025-02-23
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
@Schema(description = "文章评论点赞")
@TableName("lg_cms_article_comment_like")
public class ArticleCommentLike {

    /** 评论id */
    @TableId(type = IdType.NONE)
    @NotNull(message = "评论id不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "评论id")
    @Schema(description = "评论id")
    private Long commentId;

    /** 用户id */
    @NotNull(message = "用户id不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "用户id")
    @Schema(description = "用户id")
    private Long userId;

    /** 点赞时间 */
    @NotNull(message = "点赞时间不能为空", groups = { Create.class, Update.class })
    @ExcelProperty(value = "点赞时间")
    @Schema(description = "点赞时间")
    private LocalDateTime time;

}
